home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10663 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: sparc13.ncu.edu.tw!s3032089
  2. From: s3032089@sparc13.ncu.edu.tw (Alexander PeaceLand)
  3. Newsgroups: comp.lang.c
  4. Subject: Q about the float point format......
  5. Date: Tue, 19 Mar 1996 07:57:17 GMT
  6. Organization: NCU ME
  7. Message-ID: <s3032089.15.314E68DD@sparc13.ncu.edu.tw>
  8. NNTP-Posting-Host: @140.115.65.133
  9.  
  10.  
  11.    Could I dynamicly set the digits after the float POINT?
  12.  
  13.    In other word... I use printf to print the float point number
  14.                     like 123.456789 but in the other time i only 
  15.                     want to print 123.456 or 123.4 
  16.                     How shall I do? Thanks! :)
  17.  
  18.                    (Forgive me so poor in writing English!)
  19.  
  20. o----------------------------------------------------------o
  21. |   (''')                                                  |
  22. |  ( 0 0 )    E-mail address : s3032089@sparc13.ncu.edu.tw |
  23. |   -----                                                  |
  24. |   |||||                      - Alexander PeaceLand -     |
  25. o----------------------------------------------------------o
  26.